package cn.sy.feign;

import cn.sy.domain.Bom;
import cn.sy.feignFallback.BomClienFallbackFactory;
import cn.sy.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "application.yml", fallbackFactory = BomClienFallbackFactory.class, path = "/bom")
public interface BomFeignClien {
    @RequestMapping(value="/save",method= RequestMethod.POST)
    JSONResult saveOrUpdate(@RequestBody Bom bom);
}
